import Vue from 'vue'
import VueRouter from 'vue-router'
import AdminList from '../pages/adminList'
import AdminDetail from '../pages/adminDetail'
import Register from './../pages/register';
import Login from './../pages/login';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    name: 'list',
    component: AdminList
  },
  // 管理员账号管理模块
  {
    path: '/adminlist',
    name: 'list',
    component: AdminList
  },
  {
    path: '/admindetail',
    name: 'detail',
    component: AdminDetail
  },
  {
    path: '/login',
    name: 'login',
    component: Login
  },
  {
    path: '/register',
    name: 'register',
    component: Register
  },


]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
